package com.example.demo2.mapper;

import com.example.demo2.entity.Amino;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AminoMapper {
    List<Amino> findAll(@Param("limit") int limit, @Param("offset") int offset);
    void addAmino(Amino amino);
    List<Amino> searchAmino(@Param("term") String term);
    Amino getAminoValue(@Param("name") String name);
    int count(); // 添加计数方法
    void deleteAmino(@Param("id") Long id);
}